<%- include header%>
<%- include welcome%>
<div class="carousel slide" id="carousel" >
	<ol class="carousel-indicators">
					<li data-slide-to="0" data-target="#carousel">
					</li>
					<li data-slide-to="1" data-target="#carousel">
					</li>
					<li data-slide-to="2" data-target="#carousel" class="active">
					</li>
	</ol>
				<div class="carousel-inner">
						<div class="item">
							
				
							<img alt="300x200" src="/images/show2.jpg" />
							<div class="carousel-caption">
							<br>
							<h2>广告位招商中……</h2>
							</div>
							
						
							
						</div>
						<div class="item">
							
							<img alt="300x200" src="/images/show2.jpg" />
							<div class="carousel-caption">
							<br>
							<h2>广告位招商中……</h2>
							</div>
						
							
						</div>
						<div class="item active">
						
							<img alt="300x200" src="/images/show2.jpg" />
							<div class="carousel-caption">
							<br>
							<h2>广告位招商中……</h2>
							</div>
						
							
						</div>
			</div> 
			<a class="left carousel-control" href="#carousel" data-slide="prev"><span class="glyphicon glyphicon-chevron-left"><i class="fa fa-arrow-circle-o-right"></i></span></a> 
			<a class="right carousel-control" href="#carousel" data-slide="next"><span class="glyphicon glyphicon-chevron-right"></span></a>
</div>
<div id="shops">		

				<script>
							$(function(){


								alert();
							});

						</script>				

	
		<div class="container">
		<h4><i style="color:red" class="fa fa-star">入驻商家</i></h4>
		<div class="row">
  <div class="col-lg-6">
    <div class="input-group">
      <div class="input-group-btn">
        <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">宝贝</button>
        <ul class="dropdown-menu">
          <li><a href="#">Action</a></li>
          <li><a href="#">Another action</a></li>
          <li><a href="#">Something else here</a></li>
          <li class="divider"></li>
          <li><a href="#">Separated link</a></li>
        </ul>
      </div><!-- /btn-group -->
      <input type="text" class="form-control">
      <span class="input-group-btn">
        <button class="btn btn-default" type="button">搜!</button>
      </span>
    </div><!-- /input-group -->
  </div><!-- /.col-lg-6 -->
</div>
		<hr>

			<div class="row">
		<%if(shops && shops.length>0){shops.forEach(function(shop,index){%>
				<div class="col-xs-6 col-md-3">
				<div class="thumbnail">
						<a href="/shop/<%=shop.name%>"><%if(!shop.shoppic){%><img alt="300x200" src="/images/ad.jpeg" /><%}else{%><img src=<%=shop.shoppic%> class="img-responsive"/><%}%></a>
						<span class="badge pull-right">关注<%=shop.pv%></span>
						<div class="caption">
							<h4>
								<%=shop.shopname%>
							</h4>
							<p>
								<%=shop.whatsell%>
							</p>
						</div>
					</div>
					</div>
		<%})}%>
	</div>
	</div>
</div>	
<%-include page%>


<%-include nav%>
<%-include footer%>